<?php
    //echo validation_errors("<li>", "</li>");
?>
<div id="formerror"></div>
<!-- Add Form -->
<div id="formaction_ability_edit">
    <div class="formPanel02">
        <fieldset>
            <legend>Chỉnh sửa khả năng</legend>
            <form id="input_form_ability_edit" method="post" action='<?php echo base_url(); ?>admin_combo/ability/edit/<?php if(isset($info_edit)) echo $info_edit["ability_id"]; ?>'>
                <table id="tbfrmaction">
                    <tr>
                        <td>Nhà Cung Cấp</td>
                        <td>
                            <select id='slProvider' name='slProvider'>
                                <?php
                                    if(isset($info_provider))
                                        callProvider($info_provider, $info_edit["prov_id"]);
                                ?>
                            </select>
                        </td>
                        <td>Sản Phẩm</td>
                        <td>
                            <label><?php if(isset($info_edit)) echo $info_edit["pro_title"]; ?></label>
                        </td>
                    </tr>
                    <tr>
                        <td>Hình Ảnh</td>
                        <td>
                            <img width='100' height='100' 
                                 src='<?php echo base_url(); ?>uploads/product_main/<?php if(isset($info_edit)) echo $info_edit["pro_img"]; ?>' />
                        </td>
                        <td>Đơn Giá</td>
                        <td><input type="text" id="txtUnitPrice" name="txtUnitPrice" size="30" class='required digits'
                                   value="<?php if(isset($info_edit)) echo $info_edit["ability_unit_price"]; ?>" /></td>
                    </tr>
                    <tr>
                        <td>Ghi Chú</td>
                        <td><textarea id='txtNote' name='txtNote' cols='30' rows='4'><?php if(isset($info_edit)) echo $info_edit["ability_note"]; ?></textarea></td>
                        <td>&nbsp;</td>
                        <td><input type="submit" id="btnSubmit_ability" class="button" name="ok" value="Cập nhật" /></td>
                    </tr>
                </table>
            </form>
        </fieldset>
    </div>
</div>
<div id="dialog" title="Warning"></div>